﻿using System.Web.Mvc;
using Abp.Domain.Repositories;
using MyTestABP.Classes.Dto;
using System.Collections.Generic;
using System.Linq;
using Abp.Domain.Uow;
namespace MyTestABP.Web.Controllers
{
    public class AboutController : MyTestABPControllerBase
    {
        private readonly IRepository<MyTestABP.Entities.Classes, int> _classRepository;

        public AboutController(IRepository<MyTestABP.Entities.Classes, int> classRepository)
        {
            _classRepository = classRepository;
        }

        [UnitOfWork]
        public virtual ActionResult Index()
        {

            var data = _classRepository.GetAll().ToList();
            
            return View(data);
        }
	}
}